/* 头部样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo样式 */
.logo a {
    font-size: 24px;
    font-weight: bold;
    color: #1890ff;
    text-decoration: none;
}

/* 搜索框样式 */
.search {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
}

.search input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #1890ff;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    outline: none;
}

.search button {
    padding: 10px 20px;
    background-color: #1890ff;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search button:hover {
    background-color: #40a9ff;
}

/* 导航菜单样式 */
.nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav a:hover {
    color: #1890ff;
    background-color: #e6f3ff;
}

.nav a.active {
    color: #1890ff;
    font-weight: bold;
}

.nav .profile,
.nav .cart {
    position: relative;
}

.nav .profile::after,
.nav .cart::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #1890ff;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav .profile:hover::after,
.nav .cart:hover::after {
    transform: scaleX(1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .search {
        max-width: 100%;
        margin: 10px 0;
    }

    .nav {
        width: 100%;
        justify-content: space-between;
    }
} 